﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Hec.EnergyDemandForecast.Project;

namespace Test.Hec
{
    [TestClass]
    public class TestCsvLoadingAndWriting
    {
        [TestMethod]
        public void TestMethod1()
        {
            var test1 = new WebGetData(@"\Files");
            var url = @"http://tso.nbpower.com/reports & assessments\settlement\imports, exports, injections, withdrawals\2013-08.csv";
            test1.GetWrite(url);
        }

        [TestMethod]
        public void Test_Main_Url()
        {
            string urlDecoded = @"http://tso.nbpower.com/Public/en/op/market/report_list.aspx?path=\settlement\imports, exports, injections, withdrawals";
            var test = new WebGetData(@"\Files");
            test.GetAllDocumentsFromUrl(urlDecoded);
            test.GetDataFromList();
        }

    }
}
